package com.jjsj.mall.entity;

import com.jjsj.common.annotation.Excel;
import com.jjsj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 首页广告对象 mall_banner
 *
 * @author JJSJ
 * @date 2022-10-03
 */
public class MallBanner extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 广告Id
     */
    private Long bannerId;

    /**
     * 广告标题
     */
    @Excel(name = "广告标题")
    private String bannerTitle;

    /**
     * 广告图片
     */
    @Excel(name = "广告图片")
    private String bannerUrl;

    /**
     * 广告类型（0滚动窗户 1首页弹窗）
     */
    @Excel(name = "广告类型", readConverterExp = "0=滚动窗户,1=首页弹窗")
    private String bannerType;

    /**
     * 广告内容
     */
    @Excel(name = "广告内容")
    private String bannerContent;

    /**
     * 广告链接类型（如果是滚动窗户下，0 菜单 1指定链接）
     */
    @Excel(name = "广告链接类型", readConverterExp = "如=果是滚动窗户下，0,菜=单,1=指定链接")
    private String bannerLinkType;

    /**
     * 指定链接地址
     */
    @Excel(name = "指定链接地址")
    private String bannerLink;

    /**
     * 广告排序
     */
    @Excel(name = "广告排序")
    private Long orderNum;

    /**
     * 是否停用（0正常 1停用）
     */
    @Excel(name = "是否停用", readConverterExp = "0=正常,1=停用")
    private String bannerOn;

    /**
     * 是否删除（0正常 1停用）
     */
    private String delFlag;

    public void setBannerId(Long bannerId) {
        this.bannerId = bannerId;
    }

    public Long getBannerId() {
        return bannerId;
    }

    public void setBannerTitle(String bannerTitle) {
        this.bannerTitle = bannerTitle;
    }

    public String getBannerTitle() {
        return bannerTitle;
    }

    public void setBannerUrl(String bannerUrl) {
        this.bannerUrl = bannerUrl;
    }

    public String getBannerUrl() {
        return bannerUrl;
    }

    public void setBannerType(String bannerType) {
        this.bannerType = bannerType;
    }

    public String getBannerType() {
        return bannerType;
    }

    public void setBannerContent(String bannerContent) {
        this.bannerContent = bannerContent;
    }

    public String getBannerContent() {
        return bannerContent;
    }

    public void setBannerLinkType(String bannerLinkType) {
        this.bannerLinkType = bannerLinkType;
    }

    public String getBannerLinkType() {
        return bannerLinkType;
    }

    public void setBannerLink(String bannerLink) {
        this.bannerLink = bannerLink;
    }

    public String getBannerLink() {
        return bannerLink;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setBannerOn(String bannerOn) {
        this.bannerOn = bannerOn;
    }

    public String getBannerOn() {
        return bannerOn;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("bannerId", getBannerId())
                .append("bannerTitle", getBannerTitle())
                .append("bannerUrl", getBannerUrl())
                .append("bannerType", getBannerType())
                .append("bannerContent", getBannerContent())
                .append("bannerLinkType", getBannerLinkType())
                .append("bannerLink", getBannerLink())
                .append("orderNum", getOrderNum())
                .append("bannerOn", getBannerOn())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
